import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {path:'/',redirect:'home'},
    {path:'/home',component: () => import('../views/home/home.vue')},
    {path:'/cate',component: () => import('../views/cate/cate.vue')},
    {path:'/cart',component: () => import('../views/cart/cart.vue')},
    {path:'/user',component: () => import('../views/user/user.vue')},
  ]
})

export default router
